#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

int main()
{
	char str[5];
	scanf("%[^\n]", str);
	int len = strlen(str);
	for (int i = 0, j = len - 1; i <= j; i++)
	{
		if ((str[i] >= 'a' && str[i] <= 'z') || (str[i] >= 'A' && str[i] <= 'Z'))
		{
			char temp = str[i];
			str[i] = str[j];
			str[j] = temp;
			int count = 0;
		}
	}
	printf("%s", str);
	return 0;
}